/*
 * Copyright (c) 2013-2015 Charkey. All rights reserved.
 *
 * This software is the confidential and proprietary information of Charkey.
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the agreements you entered into with Charkey.
 *
 * Charkey MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
 *
 * Charkey SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
 * MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */

package cn.simastudio.talos.inter.service.inst;

import cn.simastudio.talos.inter.model.inst.DemoCountry;
import cn.simastudio.talos.inter.model.inst.DemoUser;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Usage: 测试Service类
 *
 * @author Charkey
 * @date 2015/4/28 14:51
 */
public interface DemoService {

    DemoCountry selectByPrimaryKey(int countryId);

    HashMap<String, Object> selectByPrimaryKeyReturnMap(int countryId);

    int insert(DemoCountry demoCountry);

    int insertSelective(DemoCountry demoCountry);

    DemoUser getUser1(int userId);

    List<DemoCountry> selectByNameLike(String countryName);

    List<DemoCountry> selectByNameLikeTraditional(String countryName);

    Integer selectByNameLikeTraditionalCount(String countryName);

    List<DemoCountry> selectByOrder(String orderBy);

    List<DemoCountry> selectByOrder2(String orderBy);

    List<DemoCountry> selectOptionalColumns(String... columns);

    List<DemoCountry> selectNotInIds(List<Integer> ids, String orderBy);

    List<DemoCountry> selectByWhereMap(Map paramMap);

    int deleteByPrimaryKey(int id);

    List<DemoCountry> selectAllIdsInArray(Integer[] params);

    List<DemoCountry> selectAllIdsInList(List<Integer> params);

    List<DemoCountry> selectAllIdsNotInMap(Map paramMap);

    DemoUser getUser2(int id);

    DemoUser getUser3(int id);

    int updateByPrimaryKey(DemoCountry demoCountry);
}
